package com.zrrd._0727;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;

public class TestFileOutStream {
   public static void main(String[] args) throws FileNotFoundException {
      FileOutputStream fos = new FileOutputStream("yuan.txt");
      PrintStream ps = new PrintStream(fos);//打印流,专门负责打印的，只不过这回打印在了yuan.txt文件中了
      ps.println("hello PrintStream");
      ps.close();
   }
}
